package com.task.scheduling.enums;

public enum TaskStatus {
    NEW_TASK(0, "新加入任务"),
    LOCKED(1,"任务被锁定"),
    RUNNING(2,"任务正在执行中"),
    SUCCESS(3,"任务执行成功"),
    FAIL(4,"任务执行失败"),
    NOT_SUPPORT(5,"未能处理的任务"),
    INTERRUPTED(6, "任务被中断执行");

    private int code;
    private String desc;

    TaskStatus(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
